package com.wskeee.ec.components
{
	import com.wskeee.ec.core.EComponent;
	
	import flash.display.Graphics;
	
	public class VSeparate extends EComponent
	{
		public function VSeparate()
		{
			super();
			height = 5;
			width = 20;
		}
		//--------------------------------------------------------------------------
		//
		//  Variables
		//
		//--------------------------------------------------------------------------
		private var drawer:Graphics;
		
		//--------------------------------------------------------------------------
		//
		//  Properties
		//
		//--------------------------------------------------------------------------
		//--------------------------------------------------------------------------
		//
		//  private Method
		//
		//--------------------------------------------------------------------------
		override protected function initChildren():void
		{
			super.initChildren();
			drawer = this.graphics;
		}
		//--------------------------------------------------------------------------
		//
		//  Method
		//
		//--------------------------------------------------------------------------
		override protected function updateDisplayList():void
		{
			super.updateDisplayList();
			var startPos:Number = (height-0.2)/2;
			drawer.clear();
			drawer.lineStyle(.1,(getStyle("borderColor") as uint),0.5);
			drawer.moveTo(0,startPos + 0.1);
			drawer.lineTo(width,startPos + 0.1);
			drawer.lineStyle(.1,getStyle("borderColor") as uint);
			drawer.moveTo(0,startPos);
			drawer.lineTo(width,startPos);
		}
	}
}